import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import test.SpringEventApplication;
import test.publisher.BuyOrder;
import test.publisher.OrderService;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2022/7/17 12:15
 * @ Description:
 */
@SpringBootTest(classes = SpringEventApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class test {
    @Autowired
    private OrderService orderService;

    @Autowired
    private BuyOrder buyOrder;

    @Test
    public void buyOrderTest01() {
        orderService.buyOrder("732171109");
    }

    @Test
    public void buyOrderTest02() {
        buyOrder.buyOrder("732171109");
    }
}

